import request from '@/utils/request'
// gasManage:stockManage:goodBrand:list
export function searchBrandsApi(query) {
    return request({
        url: '/stock/goodsBrand/list',
        method: 'get',
        params: query
    })
}
// gasManage:stockManage:goodBrand:add
export function addBrandApi(data) {
    return request({
        url: '/stock/goodsBrand',
        method: 'post',
        data: data
    })
}
// gasManage:stockManage:goodBrand:list
export function searchBrandByIdApi(id) {
    return request({
        url: '/stock/goodsBrand/'+id,
        method: 'get',
    })
}
// gasManage:stockManage:goodBrand:edit
export function editBrandApi(data) {
    return request({
        url: '/stock/goodsBrand',
        method: 'put',
        data: data
    })
}
// gasManage:stockManage:goodBrand:delete
export function deleteBrandApi(id) {
    return request({
        url: '/stock/goodsBrand/delete/'+id,
        method: 'delete'
    })
}